package com.ruoyi.order.station.request.instance;

import com.github.s7connector.api.annotation.S7Variable;
import com.github.s7connector.impl.utils.S7Type;
import lombok.Data;

@Data
public class OP01Data {
        @S7Variable(byteOffset = 0, bitOffset = 0, type = S7Type.WORD)
        public Integer screwCCDResult;
        //1#螺丝拧紧结果
        @S7Variable(byteOffset = 2, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult01;
        //2#螺丝拧紧结果
        @S7Variable(byteOffset = 4, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult02;
        //3#螺丝拧紧结果
        @S7Variable(byteOffset = 6, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult03;
        //4#螺丝拧紧结果
        @S7Variable(byteOffset = 8, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult04;
        //5#螺丝拧紧结果
        @S7Variable(byteOffset = 10, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult05;
        //6#螺丝拧紧结果
        @S7Variable(byteOffset = 12, bitOffset = 0, type = S7Type.WORD)
        public Integer tightenResult06;

        //螺丝批次号
        @S7Variable(byteOffset = 30, arraySize = 80, type = S7Type.BYTE)
        public byte[] screwBatchNo;
        //转接板物料码
        @S7Variable(byteOffset = 110, arraySize = 80, type = S7Type.BYTE)
        public byte[] driverBoardPCBMaterialNo;
        //LGBT物料号
        @S7Variable(byteOffset = 190, arraySize = 80, type = S7Type.BYTE)
        public byte[] igbtMaterialNo;

        //1#螺丝拧紧程序号
        @S7Variable(byteOffset = 350, bitOffset = 0, type = S7Type.WORD)
        public Integer programNo01;
        //1#螺丝拧紧最小扭矩
        @S7Variable(byteOffset = 352, bitOffset = 0, type = S7Type.REAL)
        public float minTorque01;
        //1#螺丝拧紧最终扭矩
        @S7Variable(byteOffset = 356, bitOffset = 0, type = S7Type.REAL)
        public float actTorque01;
        //1#螺丝拧紧最大扭矩
        @S7Variable(byteOffset = 360, bitOffset = 0, type = S7Type.REAL)
        public float maxTorque01;
        //1#螺丝拧紧最小角度
        @S7Variable(byteOffset = 364, bitOffset = 0, type = S7Type.REAL)
        public float minAngle01;
        //1#螺丝拧紧最小角度
        @S7Variable(byteOffset = 368, bitOffset = 0, type = S7Type.REAL)
        public float actAngle01;
        //1#螺丝拧紧最小角度
        @S7Variable(byteOffset = 372, bitOffset = 0, type = S7Type.REAL)
        public float maxAngle01;


        //2#螺丝拧紧程序号
        @S7Variable(byteOffset = 378, bitOffset = 0, type = S7Type.WORD)
        public Integer programNo02;
        //2#螺丝拧紧最小扭矩
        @S7Variable(byteOffset = 380, bitOffset = 0, type = S7Type.REAL)
        public float minTorque02;
        //1#螺丝拧紧最终扭矩
        @S7Variable(byteOffset = 384, bitOffset = 0, type = S7Type.REAL)
        public float actTorque02;
        //2#螺丝拧紧最大扭矩
        @S7Variable(byteOffset = 388, bitOffset = 0, type = S7Type.REAL)
        public float maxTorque02;
        //2#螺丝拧紧最小角度
        @S7Variable(byteOffset = 392, bitOffset = 0, type = S7Type.REAL)
        public float minAngle02;
        //2#螺丝拧紧最小角度
        @S7Variable(byteOffset = 396, bitOffset = 0, type = S7Type.REAL)
        public float actAngle02;
        //2#螺丝拧紧最小角度
        @S7Variable(byteOffset = 400, bitOffset = 0, type = S7Type.REAL)
        public float maxAngle02;


        //3#螺丝拧紧程序号
        @S7Variable(byteOffset = 406, bitOffset = 0, type = S7Type.WORD)
        public Integer programNo03;
        //3#螺丝拧紧最小扭矩
        @S7Variable(byteOffset = 408, bitOffset = 0, type = S7Type.REAL)
        public float minTorque03;
        //3#螺丝拧紧最终扭矩
        @S7Variable(byteOffset = 412, bitOffset = 0, type = S7Type.REAL)
        public float actTorque03;
        //3#螺丝拧紧最大扭矩
        @S7Variable(byteOffset = 416, bitOffset = 0, type = S7Type.REAL)
        public float maxTorque03;
        //3#螺丝拧紧最小角度
        @S7Variable(byteOffset = 420, bitOffset = 0, type = S7Type.REAL)
        public float minAngle03;
        //3#螺丝拧紧最小角度
        @S7Variable(byteOffset = 424, bitOffset = 0, type = S7Type.REAL)
        public float actAngle03;
        //2#螺丝拧紧最小角度
        @S7Variable(byteOffset = 428, bitOffset = 0, type = S7Type.REAL)
        public float maxAngle03;


        //4#螺丝拧紧程序号
        @S7Variable(byteOffset = 434, bitOffset = 0, type = S7Type.WORD)
        public Integer programNo04;
        //4#螺丝拧紧最小扭矩
        @S7Variable(byteOffset = 436, bitOffset = 0, type = S7Type.REAL)
        public float minTorque04;
        //4#螺丝拧紧最终扭矩
        @S7Variable(byteOffset = 440, bitOffset = 0, type = S7Type.REAL)
        public float actTorque04;
        //4#螺丝拧紧最大扭矩
        @S7Variable(byteOffset = 444, bitOffset = 0, type = S7Type.REAL)
        public float maxTorque04;
        //4#螺丝拧紧最小角度
        @S7Variable(byteOffset = 448, bitOffset = 0, type = S7Type.REAL)
        public float minAngle04;
        //4#螺丝拧紧最小角度
        @S7Variable(byteOffset = 452, bitOffset = 0, type = S7Type.REAL)
        public float actAngle04;
        //4#螺丝拧紧最小角度
        @S7Variable(byteOffset = 456, bitOffset = 0, type = S7Type.REAL)
        public float maxAngle04;
}
